import request from '@/utils/request'

// 查询失效订单列表
export function listExpiredorder(query) {
  return request({
    url: '/supply/expiredorder/list',
    method: 'get',
    params: query
  })
}

// 查询失效订单详细
export function getExpiredorder(orderId) {
  return request({
    url: '/supply/expiredorder/' + orderId,
    method: 'get'
  })
}

// 新增失效订单
export function addExpiredorder(data) {
  return request({
    url: '/supply/expiredorder',
    method: 'post',
    data: data
  })
}

// 修改失效订单
export function updateExpiredorder(data) {
  return request({
    url: '/supply/expiredorder',
    method: 'put',
    data: data
  })
}

// 删除失效订单
export function delExpiredorder(orderId) {
  return request({
    url: '/supply/expiredorder/' + orderId,
    method: 'delete'
  })
}
